/*
 * The Teacher class is a basic class for storing some information about the teacher of a course.
 */

public class Teacher 
{
	private String myName;
	private double myPhone;
	private String myEmail;

	// Information to be given later?
	public Teacher()
	{
		assignValues("Unknown", 0, "undefined@undefinedemail.com");
	}
	
	private void assignValues(String name, double phone, String email)
	{
		myName = name;
		myPhone = phone;
		myEmail = email;
	}
	
	// Returns the name of the teacher.
	public String getName()
	{
		return myName;
	}
	
	// Changes the teacher's name to value given.
	public void setName(String newName)
	{
		myName = newName;
	}
	
	// Returns the name of the teacher.
	public String getPhone()
	{
		String number;
		if (myPhone == 0)
			number = "Unknown Number";
		else
			number = new Double(myPhone).toString();

		return number.toString();
	}
	
	// Changes the teacher's name to value given.
	public void setPhone(int newPhone)
	{
		myPhone	= newPhone;
	}
	
	// Returns the name of the teacher.
	public String getEmail()
	{
		return myEmail;
	}
	
	// Changes the teacher's name to value given.
	public void setEmail(String newEmail)
	{
		myEmail = newEmail;
	}
	
	// String representation of this teacher.
	public String toString()
	{
		String teacherInfo = "";
		teacherInfo += getName() + " (" + getEmail() + ", " + getPhone() + ")";
		
		return teacherInfo;
		
	}

}
